//
//  SQNetWorking.h
//  SQ_AProject
//
//  Created by 宋强 on 16/3/7.
//  Copyright © 2016年 宋强. All rights reserved.
//

#import <Foundation/Foundation.h>
typedef void(^BlockOfSuccess) (id result);

typedef NS_ENUM(NSUInteger, SQResponseStyle) {
    SQJSON,
    SQXML,
    SQDATA,
};
typedef NS_ENUM(NSUInteger, SQRequestStyle) {
    SQRequestJSON,
    SQRequestString,
};
@interface SQNetWorking : NSObject
+(void)GETNetWithUrl:(NSString *)url body:(id)body headerFile:(NSDictionary *)header response:(SQResponseStyle)responseStyle  success:(BlockOfSuccess)success
             failure:(void (^)(NSError *error))failure;


+(void)POSTNetWithUrl:(NSString *)url body:(id)body bodyStyle:(SQRequestStyle)bodyRequestStyle headerFile:(NSDictionary *)header response:(SQResponseStyle)responseStyle  success:(BlockOfSuccess)success
              failure:(void (^)(NSError *error))failure;


@end
